package com.pj.thread;

import java.util.HashMap;
import java.util.concurrent.*;

/**
 * @author 王存露
 * @date 2021/2/27
 */
public class Main {
    public static void main(String[] args) {
        HashMap<String, String> stringStringHashMap = new HashMap<>();
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(10, 10, 10000, TimeUnit.DAYS, new LinkedBlockingDeque<>());
        for (int i = 0; i < 6; i++) {
            threadPoolExecutor.execute(new TestThread());
        }
        threadPoolExecutor.shutdown();
    }
}
